package com.yuw.lianxi;

public class Student extends Person{

    // 语句块
    {
        System.out.println("执行了Student类的语句块");
    }

    // 静态语句块
    static {
        System.out.println("执行了Student类的静态语句块");

    }


    // 属性
    String perName = "student";

    public Student() {
        System.out.println("执行了Student类的默认构造方法");
    }

    public Student(String perName, String perName1) {
        super(perName);
        this.perName = perName1;
        System.out.println("执行了Student类的自定义构造方法");
    }
}
